<%if flash[:notice] %>
  <script> alert('<%= flash[:notice]%>');</script> 
<% end %>
<% form_tag :controller => "authentication", :action => "login" do %>

  <table>
    <tr>
      <td>
        <label>Login:</label>
      </td>
      <td>
        <%= text_field(:authentication, "login")  %>
      </td>
    </tr>
    <tr>
      <td>
        <label>Password:</label>
      </td>
      <td>
        <%= password_field(:authentication, "password")  %>
      </td>
    </tr>
    <tr>
      <td></td>
      <td><%= submit_tag "Login" %></td>
    </tr>
  </table>

<% end %>